package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.DictionaryItem;
import cn.wolfcode.crm.query.DictionaryItemQueryObject;
import cn.wolfcode.crm.query.QueryObject;

import java.util.List;
import java.util.Map;

public interface DictionaryItemMapper {
    int deleteByPrimaryKey(Long id);

    int insert(DictionaryItem record);

    DictionaryItem selectByPrimaryKey(Long id);

    List<DictionaryItem> selectAll();

    int updateByPrimaryKey(DictionaryItem record);

    /**
     * 分页
     * @param qo 查询参数
     */
    int queryForCount(QueryObject qo);

    List<DictionaryItem> queryForList(QueryObject qo);

    List<DictionaryItem> getDictionaryItemByParentId(Long id);

    List<Map<Object,Object>> getDictionaryItemByParentName(DictionaryItemQueryObject dio);
}